package com.guocheng.modules.emp.controller;

import com.guocheng.entity.AjaxResult;
import com.guocheng.modules.meet.model.po.Meet;
import com.guocheng.modules.meet.model.po.MeetEmp;
import com.guocheng.modules.meet.service.MeetEmpService;
import com.guocheng.modules.meet.service.MeetService;
import com.guocheng.modules.meet.service.MeetSigninService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.stream.Collectors;


/**
 * 会议人员签到
 */
@RestController
@RequestMapping("/emp/signin")
public class EmpSigninController {

    @Autowired
    private MeetEmpService meetEmpService;

    @Autowired
    private MeetService meetService;

    /**
     * 人员签到
     * @param id
     * @return
     */
    @GetMapping
    public AjaxResult signin(@RequestParam("id")Integer id){
        List<Meet> integers = meetService.selectDayMeet();

        return AjaxResult.ok("签到成功！");
    }

}
